{% extends 'master.html' %}
{% block main %}
{% raw %}
    <div class="toobox" id="login">
        <form action="./" method="post">
            望远镜 <input class="tel"  name="tel"  type="text" v-model="tel" /><br />
            验证码 <input class="pswd" name="pswd" type="password" v-model="pswd" /><br />
            <button class="btn">登录</button><br />
            <span class="err" v-if="err">望远镜代码或者验证码错误</span>
        </form>
    </div>    
{% endraw %}
{% endblock %}

{% block code %}
<script>
    const app = {
        data() { return {
            tel: "",
            pswd: "",
            err: {{err}},
        } }, // data
        
        computed: {
        }, // computed
        
        methods: {
        }, //methods

        mounted() {
        }, // mounted
    } //app

    Vue.createApp(app).mount('#toomain')
</script>
{% endblock %}
